

<!-- 银行列表 -->
<template>
	<view>
		<view class="bankList" v-for="item of list" @click="select(item)">
			<view class="left flex-all-center">
				<image :src="imgSite + item.logo"></image>
			</view>
			<view class="right flex-center">
			    {{item.name}}
			</view>
		</view>
	</view>
</template>

<script>	
    import {
		mapState,
		mapMutations
	} from 'vuex';
	export default {
		components: {
			
		},
		data() {
			return {
				list:[]
			}
		},
		computed: {
			...mapState(['imgSite'])
		},
		onLoad() {
			let that = this;
			this.$api.globalUtil.requestAjax({
				url: '/bankApi/getBankListApi',
				method: 'POST',
				data: {
				},
				success: function(res) {
					that.list = res.data.response;
					console.log(res.data.response)
				}
			});
		},
		methods: {
			select(e) {
				uni.setStorage({
					data:e,
					key:"bankMsg"
				})
				uni.navigateBack({
					delta:1
				})
			},
		}
	}
</script>

<style lang="scss">
	.bankList{
		width: 100%;
		background-color: white;
		height: 104rpx;
		display: flex;
		border-bottom: 1rpx solid#F4F4F4;
		.left{
			height: 100%;
			width: 106rpx;
			image{
				width: 44rpx;
				height: 44rpx;
			}
		}
		.right{
			color: #282828;
			font-size: 32rpx;
		}
	}
	
</style>



